package com.edianping.bean;

public class ReviewItemBean {
	public ReviewItemBean(String id) {
		this.id = id;
	}

	String id = "";
	String shopid = "";
	int userid = 0;
	String productidlist = "";
	int weight;
	int score = 0;
	int reality = 0;
	int service = 0;
	int velocity = 0;
	int rate = 0;
	int flower_count = 0;
	int egg_count = 0;
	int userReputation = 0;

	String tags = "";
	String paymethod = "";
	String feature = "";
	
	// These three fields are for new algorithm
	int commentLength = 0;
	int picCount = 0;
	int loginCount = 0;

	public int getLoginCount() {
		return loginCount;
	}

	public void setLoginCount(int loginCount) {
		this.loginCount = loginCount;
	}

	public int getWeight() {
		return weight;
	}

	public int getCommentLength() {
		return commentLength;
	}

	public void setCommentLength(int commentLength) {
		this.commentLength = commentLength;
	}

	public int getPicCount() {
		return picCount;
	}

	public void setPicCount(int picCount) {
		this.picCount = picCount;
	}

	public void setWeight(int weight) {
		this.weight = weight;
	}
	
	public int getUserReputation() {
		return userReputation;
	}

	public void setUserReputation(int userReputation) {
		this.userReputation = userReputation;
	}

	public String getShopid() {
		return shopid;
	}

	public void setShopid(String shopid) {
		this.shopid = shopid;
	}

	public int getReality() {
		return reality;
	}

	public void setReality(int reality) {
		this.reality = reality;
	}

	public int getService() {
		return service;
	}

	public void setService(int service) {
		this.service = service;
	}

	public int getVelocity() {
		return velocity;
	}

	public void setVelocity(int velocity) {
		this.velocity = velocity;
	}

	public int getRate() {
		return rate;
	}

	public void setRate(int rate) {
		this.rate = rate;
	}

	public int getFlower_count() {
		return flower_count;
	}

	public void setFlower_count(int flowerCount) {
		flower_count = flowerCount;
	}

	public int getEgg_count() {
		return egg_count;
	}

	public void setEgg_count(int eggCount) {
		egg_count = eggCount;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getId() {
		return id;
	}

	public int getScore() {
		return score;
	}

	public void setScore(int score) {
		this.score = score;
	}

	public int getUserid() {
		return userid;
	}

	public void setUserid(int userid) {
		this.userid = userid;
	}

	public String getProductidlist() {
		return productidlist;
	}

	public void setProductidlist(String productidlist) {
		this.productidlist = productidlist == null?"":productidlist;
	}
	

	public String getTags() {
		return tags;
	}

	public void setTags(String tags) {
		this.tags = tags == null?"":tags;
	}

	public String getPaymethod() {
		return paymethod;
	}

	public void setPaymethod(String paymethod) {
		this.paymethod = paymethod == null?"":paymethod;
	}

	public String getFeature() {
		return feature;
	}

	public void setFeature(String feature) {
		this.feature = feature == null?"":feature;
	}

	/**
	 * for unit test
	 */
	public String toString() {
		StringBuffer sb = new StringBuffer();
		sb.append("id = " + this.id + "\n");

		return sb.toString();
	}
}
